#include <cpp_primer.h>

using namespace std;
using namespace std::placeholders;

bool six(const string &s, string::size_type sz);

int main()
{
    vector<string> svec{"1234", "123456", "12 456", "12345", "1234567", "  34567"};
    auto f = bind(six, _1, 6);
    auto sum = count_if(svec.begin(), svec.end(), f());
    // auto sum = count_if(svec.begin(), svec.end(), f);
    cout << sum << endl;

    return 0;

}

bool six(const string &s, string::size_type sz)
{
    return s.size() <= 6;

}

